package com.ciwong.epaper.modules.epaper.ui;

import android.graphics.Bitmap;
import android.util.Log;
import android.webkit.WebView;

import com.github.lzyzsd.jsbridge.BridgeWebView;
import com.github.lzyzsd.jsbridge.BridgeWebViewClient;

/**
 * @description:
 * @author: wyk
 * @time: 2021/6/18 17:15
 */
public class MyWebViewClient extends BridgeWebViewClient {
    public MyWebViewClient(BridgeWebView webView) {
        super(webView);
    }

    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
        Log.d("---shouldOveading " , url);
        view.loadUrl(url);
        return true;
//
//        return super.shouldOverrideUrlLoading(view,url);
    }

    @Override
    public void onPageStarted(WebView view, String url, Bitmap favicon) {
        Log.d("---onPageStarted " , url);
        super.onPageStarted(view,url,favicon);

    }

    @Override
    public void onPageFinished(WebView view, String url) {
        Log.d("---onPageFinished " , url);
        super.onPageFinished(view,url);
    }



}